home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Applications / Lookup 1.0d2 / Includes / CListBox.h < prev    next >
Encoding:
Text File  |  1994-07-25  |  1002 b   |  38 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //    CListBox.h            ©1994 Harold Ekstrom, AG Group, Inc. All rights reserved.
  3. // =================================================================================
  4. //    CListBox.cp    
  5.  
  6. #pragma once
  7.  
  8. #include <LListBox.h>
  9.  
  10. #ifndef __LISTS__
  11. #include <Lists.h>
  12. #endif
  13.  
  14. #define __CLISTBOX__
  15.  
  16.  
  17. class CListBox : public LListBox {
  18. public:
  19.                     CListBox();
  20.                     CListBox(LStream *inStream);
  21.     virtual            ~CListBox();
  22.  
  23. protected:
  24.     virtual void    FinishCreateSelf();
  25.     virtual void    LDEFInitialize();
  26.     virtual void    LDEFDraw( Boolean lSelect, Rect *lRect, Cell lCell,
  27.                         short lDataOffset, short lDataLen ) = 0;
  28.     virtual void    LDEFHilite( Boolean lSelect, Rect *lRect, Cell lCell,
  29.                         short lDataOffset, short lDataLen ) = 0;
  30.                 
  31. private:
  32.     ListDefProcPtr    mLDEFProc;
  33.  
  34.     friend static pascal void     MyLDEF( short lMessage, Boolean lSelect,
  35.                                     Rect *lRect, Cell lCell, short lDataOffset,
  36.                                     short lDataLen, ListHandle lList );
  37. };
  38.